// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

/**
 * Enum for contact point type.
 */
enum class FWorldContactPoint
{
	Start,
	End
};

inline FWorldContactPoint FWorldContactPointFromJson(const json& j)
{
	if (j == "start")	return FWorldContactPoint::Start;
	if (j == "end")		return FWorldContactPoint::End;
	return FWorldContactPoint::Start;
}

inline json FWorldContactPointToJson(FWorldContactPoint p)
{
	if (p == FWorldContactPoint::Start)	return "start";
	if (p == FWorldContactPoint::End)	return "end";
	return "start";
}

inline void from_json(const json& j, FWorldContactPoint& p)
{
	p = FWorldContactPointFromJson(j);
}

inline void to_json(json& j, const FWorldContactPoint& p)
{
	j = FWorldContactPointToJson(p);
}
